package com.zlm.user.emp.service.impl;

import com.zlm.common.base.AbstractBaseService;
import com.zlm.common.entity.UserTokenDO;
import com.zlm.user.emp.dao.UserTokenDao;
import com.zlm.user.emp.service.UserTokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: duyufu
 * @Date: 2019/4/30 15:25
 */
@Service
public class UserTokenServiceImpl extends AbstractBaseService<UserTokenDao, UserTokenDO> implements UserTokenService {
    @Autowired
    @Override
    public void setBaseDao(UserTokenDao userTokenDao) {
        this.baseDao = userTokenDao;
    }

    @Override
    public UserTokenDO getLoginUser(String token) {
        return baseDao.getLoginUser(token);
    }
}
